module.exports = app => {
    if (app.config.env === 'local' || app.config.env === 'prod') {
        app.beforeStart(async() => {
            // 修改为true会导致奔溃，数据丢失
            await app.model.sync({ force: false });
        });
    }
};